package com.aeye.mbr.common.exception;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by chengshengru on 17-9-2.
 */
public class TalkeduException extends RuntimeException {

    private int code;

    private String msg;


    public TalkeduException(Throwable cause) {
        super(cause);
    }

    public TalkeduException(String msg,Throwable cause) {
        super(cause);
        this.msg = msg;
    }

    public TalkeduException() {

    }

    public TalkeduException(String msg) {
        this(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg);
    }

    public TalkeduException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
